import request from '@/utils/request'

// 查询AI 聊天会话列表
export function listAiChatConversation(query) {
  return request({
    url: '/ai/aiChatConversation/list',
    method: 'get',
    params: query
  })
}

// 查询AI 聊天会话详细
export function getAiChatConversation(id) {
  return request({
    url: '/ai/aiChatConversation/' + id,
    method: 'get'
  })
}

// 新增AI 聊天会话
export function addAiChatConversation(data) {
  return request({
    url: '/ai/aiChatConversation',
    method: 'post',
    data: data
  })
}

// 修改AI 聊天会话
export function updateAiChatConversation(data) {
  return request({
    url: '/ai/aiChatConversation',
    method: 'put',
    data: data
  })
}

// 删除AI 聊天会话
export function delAiChatConversation(id) {
  return request({
    url: '/ai/aiChatConversation/' + id,
    method: 'delete'
  })
}
